package org.darkforest.dao.mapper;

import java.util.List;
import java.util.Map;

import org.darkforest.dao.annotation.DBMapper;
import org.darkforest.model.RefundReturn;
import org.darkforest.model.RefundReturnSearchBean;
import org.darkforest.model.RefundReturnVo;
@DBMapper
public interface RefundReturnMapper {
    int deleteByPrimaryKey(Integer refundId);

    int insert(RefundReturn record);

    int insertSelective(RefundReturn record);

    RefundReturn selectByPrimaryKey(Integer refundId);

    int updateByPrimaryKeySelective(RefundReturn record);

    int updateByPrimaryKey(RefundReturn record);
    
    List<RefundReturnVo>  selectByMember(RefundReturnSearchBean page);

    RefundReturnVo selectById(Map<String, Object> p);

    List  selectListByCondition(RefundReturnSearchBean page);

    int updateRefund(RefundReturn refundReturn);

    int updateReback(RefundReturn refundReturn);

    int updateRefundByOderSn(RefundReturn refund);

    List<Map<String,Object>> refundMoneyAndGoodsStatistics(Map flag);

    RefundReturn selectListByOrderSn(String orderSn);

    List<Map<String,Object>> findRefundStatisticsByCondition(RefundReturnSearchBean page);
}